{foreach name="list" id="value"}
{if condition="$value['photo'] eq ''"}
<div class="mui-card">
    <div class="mui-card-header">{$value['title']}</div>
    <div class="mui-card-content">
        <div class="mui-card-content-inner">
            <p class="remarks">{$value['remark']}</p>
        </div>
    </div>
    <div class="mui-card-footer">
        <p><span class="sun sun-ziyuan"></span> {:date('Y-m-d',strtotime($value['create_time']))}</p>
        <a class="mui-card-link" href="{:url('index/article_details',['id'=>$value['id']])}"><span
                class="sun sun-add"></span>More</a>
    </div>
</div>
{else/}
<div class="mui-card">
    <div class="mui-card-header mui-card-media"
         style="height:40vw;background:linear-gradient(180deg ,rgba(0,0,0,.6),rgba(0,0,0,.1)),url(/static/uploads/images/{$value['photo']})">
        {$value['title']}
    </div>
    <div class="mui-card-content">
        <div class="mui-card-content-inner">
            <p></p>
            <p class="remarks">{$value['remark']}</p>
        </div>
    </div>
    <div class="mui-card-footer">
        <p><span class="sun sun-ziyuan"></span> {:date('Y-m-d',strtotime($value['create_time']))}</p>
        <a class="mui-card-link" href="{:url('index/article_details',['id'=>$value['id']])}"><span
                class="sun sun-add"></span>More</a>
    </div>
</div>
{/if}
{/foreach}
<div style="height: 44px;"></div>